import requests
from bs4 import BeautifulSoup


def fetch_journal_article(url):
    # 发送HTTP GET请求
    response = requests.get(url)

    # 检查请求是否成功
    if response.status_code == 200:
        # 使用BeautifulSoup解析HTML
        soup = BeautifulSoup(response.text, 'html.parser')

        # 假设文章文本位于id为'article-text'的div中
        # 你需要根据实际的HTML结构修改这里的选择器
            print("未找到文章文本")
    else:
        print("请求失败，状态码：", response.status_code)

    # 替换下面的URL为你的目标期刊文章URL


url = 'https://zzvip.kmqk.top/e/action/ShowInfo.php?classid=1&id=139&qk=14236'
fetch_journal_article(url)